package com.wages.project.system.attence.service;

import java.util.Date;
import java.util.List;
import com.wages.project.system.attence.domain.Attence;

/**
 * attenceService接口
 *
 * @author wages
 * @date 2021-05-20
 */
public interface IAttenceService
{
    /**
     * 查询attence
     *
     * @param id attenceID
     * @return attence
     */
    public Attence selectAttenceById(Long id);

    /**
     * 查询attence列表
     *
     * @param attence attence
     * @return attence集合
     */
    public List<Attence> selectAttenceList(Attence attence);

    /**
     * 新增attence
     *
     * @param attence attence
     * @return 结果
     */
    public int insertAttence(Attence attence);

    /**
     * 修改attence
     *
     * @param attence attence
     * @return 结果
     */
    public int updateAttence(Attence attence);

    /**
     * 批量删除attence
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAttenceByIds(String ids);

    /**
     * 删除attence信息
     *
     * @param id attenceID
     * @return 结果
     */
    public int deleteAttenceById(Long id);

    Attence selectAttenceStatus(Long userId, Date stateTime, Date endTime);
}
